
//'Intent' is the Paradime way of working out the main purpose of this instance of the EXE.
//For example, this EXE could be an interpreter, it could be a remote administration tool,
//or it may be a compiled script.
#define INTENT_SCRIPT_INTERPRETER 0x25
#define INTENT_COMPILED_INTERPRETER 0x15
//RAT = Remote Administration Tool
#define INTENT_COMPILED_RAT 0x18
#define INTENT_SCRIPTED_COMPILED_RAT 0x35

//Global Variable
extern HINSTANCE				AppInstance;
extern HWND						MainWinHnd;	
extern LPSTR*					CmdLine;
extern char						PROCESS_INTENT;


//Global Control functions
int ScriptExec_Startup(char*);			//Executes a script at the given filename.
void Global_ParseCmdLineandSTART(void); //Parses the command line and fires everything up.
void Global_ResourcesInit(void);		//Initialises everything.
void Global_ErrorDie(int, char*);		//Outputs an error message, then gracefully shuts down everything and dies.

//Internal functions
void RegisterStandardClass(void);		//Registers standard GUI class.
int Global_DoWinMsgLoop(void);			//Function to loop round the windows message loop.
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); //Message processing callback.

//Global resource management functions.
